package com.caiheng.api.entity.platform;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 设备列对象 devices
 *
 * @author ruoyi
 * @date 2021-12-15
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("coupons")
public class Coupons implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String couponName;
    private Integer couponType;
    private BigDecimal singlePrice;
    private BigDecimal dikouPrice;
    private Integer isCommon;
    private Integer isLimitCount;
    private Integer limitCount;
    private Integer expireDays;
    private Integer state;
    private String imgUrl;

    private Integer expireType;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
    private Date beginDate;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd", timezone = "GMT+8")
    private Date endDate;

    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
